/* 框架的css样式 */
#ed-dialog {
    position: fixed;
    z-index: 3000;
    top: 50%;
    left: 50%;
    display: block;
    width: 80%;
    max-width: 630px;
    height: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    opacity: .9;
}

#ed-overlay {
    position: fixed;
    z-index: 2500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    background: hsla(0, 0%, 30%, .3);
}

.ed-wrap {
    font-size: 16px;
    position: relative;
    overflow: hidden;
    border-collapse: collapse;
    -webkit-transition: all .2s ease-out;
    transition: all .2s ease-out;
    opacity: .7;
    color: hsl(0, 0%, 40%);
    border-radius: 5px;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0 3px 5px #777;
}

.ed-title {
    font-size: 18px;
    padding-top: 10px;
    text-align: center;
    color: hsl(20, 100%, 50%);
}

.ed-content {
    font-size: 14px;
    padding: 10px;
    text-align: center;
    color: hsl(0, 0%, 40%);
    border-bottom: 1px solid hsl(0, 0%, 80%);
}

.ed-btns {
    display: flex;
    display: -webkit-box;
    display: -moz-box;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
    border: 0;
}

.ed-btn {
    font-size: 16px;
    position: relative;
    float: left;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px 0;
    text-align: center;
    border: 0;
    border-right: 1px solid hsl(0, 0%, 84%);
    background: none;
    box-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
}

.ed-btn:last-child {
    border-right: none;
}

.ed-btns button:active {
    background-color: hsl(0, 0%, 94%);
}

/* Effect 1: Fade in and scale up */

.ed-effect-1 .ed-wrap {
    -webkit-transform: scale(.7);
    transform: scale(.7);
    opacity: 0;
}

.ed-show.ed-effect-1 .ed-wrap {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/* Effect 2: Slide from the right */

.ed-effect-2 .ed-wrap {
    -webkit-transition: all .3s cubic-bezier(.25, .5, .5, .9);
    transition: all .3s cubic-bezier(.25, .5, .5, .9);
    -webkit-transform: translateX(20%);
    transform: translateX(20%);
    opacity: 0;
}

.ed-show.ed-effect-2 .ed-wrap {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
}

/* Effect 3: Slide from the bottom */

.ed-effect-3 .ed-wrap {
    -webkit-transition: all .3s cubic-bezier(.25, .5, .5, .9);
    transition: all .3s cubic-bezier(.25, .5, .5, .9);
    -webkit-transform: translateY(20%);
    transform: translateY(20%);
    opacity: 0;
}

.ed-show.ed-effect-3 .ed-wrap {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

/* Effect 4: Newspaper */

.ed-effect-4 .ed-wrap {
    -webkit-transform: scale(0) rotate(720deg);
    transform: scale(0) rotate(720deg);
    opacity: 0;
}

.ed-show.ed-effect-4 ~ #ed-overlay,
.ed-effect-4 .ed-wrap {
    -webkit-transition: all .5s;
    transition: all .5s;
}

.ed-show.ed-effect-4 .ed-wrap {
    -webkit-transform: scale(1) rotate(0deg);
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

/* Effect 5: fall */

#ed-dialog.ed-effect-5 {
    -webkit-perspective: 1300px;
    perspective: 1300px;
}

.ed-effect-5 .ed-wrap {
    -webkit-transform: translateZ(600px) rotateX(20deg);
    transform: translateZ(600px) rotateX(20deg);
    opacity: 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.ed-show.ed-effect-5 .ed-wrap {
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    -webkit-transform: translateZ(0px) rotateX(0deg);
    transform: translateZ(0px) rotateX(0deg);
    opacity: 1;
}

/* Effect 6: Super scaled */

.ed-effect-6 .ed-wrap {
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    -webkit-transform: scale(2);
    transform: scale(2);
    opacity: 0;
}

.ed-show.ed-effect-6 .ed-wrap {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}
